<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Events extends Controller {

	function __construct()
	{
            parent::__construct();
            //$this->template->load('template', 'home');
            
        }

	function index()
	{            

           
            $id=$this->uri->segment(3);
            $this->load->model('commonmodel');
            $data['events']=$this->commonmodel->get_event($id);
            //print_r($data['events']);exit;
            $this->load->library('breadcrumb');
            $this->breadcrumb->Breadcrumb();
            $this->breadcrumb->addCrumb("Events");
            $data['breadcrumb'] = $this->breadcrumb->makeBread();

            $this->template->load('template', 'eventdetail', $data);
            //$this->load->view('home');
        }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */